import axios from '@/libs/api.request'

export class SysWelfarePercentAreaConfigApi {
  static get (path, params = {}) {
    return request.get(path, createGETParams(params))
  }

  static post (path, params = {}) {
    return request.post(path, params)
  }

  // 根据收费精度计算缴纳金额
  static getTotalAmount (params) {
    return axios.request({
      url: '/SysWelfarePercentAreaConfig/GetTotalAmount',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据缴纳明细列表批量计算缴纳金额
  static getTotalAmountList (params) {
    return axios.request({
      url: '/SysWelfarePercentAreaConfig/GetTotalAmountList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据缴纳明细列表批量计算各险种缴纳金额
  static getSecurityTotalAmountList (params) {
    return axios.request({
      url: '/SysWelfarePercentAreaConfig/GetSecurityTotalAmountList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
